---
title: Application.WindowActivate Event (Excel)
keywords: vbaxl10.chm504091
f1_keywords:
- vbaxl10.chm504091
ms.prod: excel
api_name:
- Excel.Application.WindowActivate
ms.assetid: 5c618983-27d8-49b1-0a52-001c7a1f94d8
ms.date: 06/08/2017
---


# Application.WindowActivate Event (Excel)

Occurs when any workbook window is activated.


## Syntax

 _expression_ . **WindowActivate**( **_Wb_** , **_Wn_** )

 _expression_ A variable that represents an **Application** object.


### Parameters



|**Name**|**Required/Optional**|**Data Type**|**Description**|
|:-----|:-----|:-----|:-----|
| _Wb_|Required| **Window**| The workbook displayed in the activated window.|
| _Wn_|Required| **Window**| The activated window.|

## Remarks

For information about how to use event procedures with the  **Application** object, see[Using Events with the Application Object](http://msdn.microsoft.com/library/0063feba-47fd-29be-d2d5-8fcf47e70cbc%28Office.15%29.aspx).


## See also


#### Concepts


[Application Object](application-object-excel.md)

